package com.example.aop.controller;

import com.example.aop.config.MyAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/user")
public class User {
    @RequestMapping("u1")
    public void u1(){
        log.info("执行 u1");
    }

    @MyAspect
    @RequestMapping("u2")
    public void u2(){
        log.info("执行 u2");
    }
}
